package com.wechat.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/3/5 0005.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WechatMenu implements Serializable{

    /**
     * button : [{"name":"全民领券","sub_button":[{"name":"领取优惠券","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fgood%2findex&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2001_QMYH"},{"name":"9.9包邮","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fnineNine&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2002_QMYH"},{"name":"19.9包邮","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fnineteen&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2003_QMYH"},{"name":"麦当劳优惠券","type":"view","url":"http://mcdcard.mcdonalds.com.cn/","key":"V3004_QMYH"},{"name":"肯德基优惠券","type":"view","url":"https://login.kfc.com.cn/CRM/2015110324/coupons.html","key":"V3005_QMYH"}]},{"name":"好福利","sub_button":[{"name":"小视频","type":"view","url":"http://shaobingquan.com/video/videolist","key":"V2004_QMYH"},{"name":"帮助中心","type":"view","url":"http://mp.weixin.qq.com/mp/homepage?__biz=MzI2NDkzMzgxNw==&hid=1&sn=41b2001ffa876c3e5defcc4f3bed90df#wechat_redirect","key":"V2005_QMYH"},{"name":"签到积分","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fintegralSign&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2006_QMYH"},{"name":"推荐好友拿积分","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3A%2F%2Fwww.shaobingquan.com%2Fhfive%2FgoQrCodePage&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2007_QMYH"},{"name":"查找优惠券","type":"view","url":"http://www.shaobingquan.com/ali/goSearch","key":"V2017_QMYH"}]},{"name":"我的地盘","sub_button":[{"name":"个人中心","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fuserOpenId&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2008_QMYH"},{"name":"订单认领","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2forderClaim&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2009_QMYH"},{"name":"积分兑换","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fintegralMainPage&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2010_QMYH"},{"name":"联系客服","type":"click","key":"V1003_QMYH"}]}]
     */
    private List<ButtonEntity> button;

    @Data
    public static class ButtonEntity implements Serializable {
        /**
         * name : 全民领券
         * sub_button : [{"name":"领取优惠券","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fgood%2findex&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2001_QMYH"},{"name":"9.9包邮","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fnineNine&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2002_QMYH"},{"name":"19.9包邮","type":"view","url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fwx%2fnineteen&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect","key":"V2003_QMYH"},{"name":"麦当劳优惠券","type":"view","url":"http://mcdcard.mcdonalds.com.cn/","key":"V3004_QMYH"},{"name":"肯德基优惠券","type":"view","url":"https://login.kfc.com.cn/CRM/2015110324/coupons.html","key":"V3005_QMYH"}]
         */
        private String name;
        private  List<SubButtonEntity> subButton;

        @Data
        public static class SubButtonEntity implements Serializable{
            /**
             * name : 领取优惠券
             * type : view
             * url : https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxab7ee423d995975b&redirect_uri=http%3a%2f%2fwww.shaobingquan.com%2fgood%2findex&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect
             * key : V2001_QMYH
             */
            private String name;
            private String type;
            private String url;
            private String key;

        }
    }
}
